<template>
  <div>
    <h3>son.vue</h3>
    <p>{{ props.value }}</p>
    <input type="text" v-model="msg" />
    <a-button @click="$emit('update:value', msg)">点我</a-button>
  </div>
</template>

<script setup lang="ts" name="MySon">
const props = defineProps(["value"]);
console.log(props);
const msg = ref("demo");
</script>

<style scoped></style>
